package cn.codeartist.wechat.qywx.controller.contact;

import cn.codeartist.wechat.qywx.entity.dto.contact.QywxUserInfoDTO;
import cn.codeartist.wechat.qywx.entity.vo.R;
import cn.codeartist.wechat.qywx.service.contact.QywxContactService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * jnai
 *
 * @author 艾江南
 * @date 2020/7/29
 */
@RestController
@RequestMapping("user")
public class QywxContactController {

    @Autowired
    private QywxContactService qywxContactService;

    @GetMapping
    public R<QywxUserInfoDTO> getUserInfo(String id) {
        return R.ok(qywxContactService.getUserInfo(id));
    }
}
